package com.attendance.Utils.Converter;

import com.attendance.model.Form.TypeForm;
import com.attendance.model.Type;

/**
 * Created by Inuyasha on 2016/12/1.
 */
public class TypeConverter {

    public static Type convert(TypeForm typeForm){
        Type type = new Type();
        type.setDiscount(typeForm.getDiscount());
        type.setId(typeForm.getId());
        type.setMemo(typeForm.getMemo());
        type.setName(typeForm.getName());
        return type;
    }
}
